package org.dromara.bean.config;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.bean.util.wxApi.IWXPayDomain;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import java.io.InputStream;

/**
 * 用户初始化数据配置
 *
 * @author Administrator
 */

@Configuration
@ConfigurationProperties(prefix = "wx", ignoreUnknownFields = true)
@Component
@Data
@EqualsAndHashCode(callSuper = false)
public class WxConfig extends WXPayConfig {

    private String memberMiniAppId;
    private String memberMiniAppSecret;

    private String memberWechatAppId;
    private String memberWechatAppSecret;

    private String doctorMiniAppId;
    private String doctorMiniAppSecret;

    private String doctorWechatAppId;
    private String doctorWechatAppSecret;

    private String phcMiniAppId;
    private String phcMiniAppSecret;

    private String tecMiniAppId;
    private String tecMiniAppSecret;

    private String phcWechatAppId;
    private String phcWechatAppSecret;

    private String nurseWechatAppId;
    private String nurseWechatAppSecret;

    private String initPwd;

    private String requestUrl;

    private String mch_id;

    private String plan_id;

    private String signKey;

    private String appKey;

    private String trade_typed;

    private String transfersUrl;

    private String notify_url;

    private String wxPayApplyUrl;

    private String wxQueryOrderUrl;

    private String wxQueryStateUrl;

    private String wxQueryContractUrl;

    private String wxRefundUrl;

    private String wxSelectRefund;

    private String wechatAppId;

    private String wechatAppSecret;


    private String wechatCheckUrl;
    private String refreshTokenUrl;


    //用户领取优惠券成功通知模板ID
    private String couponTemplateId;

    private String appId;

    private String appSecret;

    @Override
    public String getMchID() {
        return mch_id;
    }

    @Override
    public String getKey() {
        return signKey;
    }

    @Override
    public InputStream getCertStream() {
        return null;
    }

    @Override
   public IWXPayDomain getWXPayDomain() {
        return null;
    }


}
